# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1NetworkDevice do
  @moduledoc """
  Details about the network device. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportNetworkDeviceConfiguration](https://chromeenterprise.google/policies/#ReportNetworkDeviceConfiguration) * Data Collection Frequency: At device startup * Default Data Reporting Frequency: At device startup - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: Yes * Reported for affiliated users only: N/A

  ## Attributes

  *   `iccid` (*type:* `String.t`, *default:* `nil`) - Output only. The integrated circuit card ID associated with the device's sim card.
  *   `imei` (*type:* `String.t`, *default:* `nil`) - Output only. IMEI (if applicable) of the corresponding network device.
  *   `macAddress` (*type:* `String.t`, *default:* `nil`) - Output only. MAC address (if applicable) of the corresponding network device.
  *   `mdn` (*type:* `String.t`, *default:* `nil`) - Output only. The mobile directory number associated with the device's sim card.
  *   `meid` (*type:* `String.t`, *default:* `nil`) - Output only. MEID (if applicable) of the corresponding network device.
  *   `type` (*type:* `String.t`, *default:* `nil`) - Output only. Network device type.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :iccid => String.t() | nil,
          :imei => String.t() | nil,
          :macAddress => String.t() | nil,
          :mdn => String.t() | nil,
          :meid => String.t() | nil,
          :type => String.t() | nil
        }

  field(:iccid)
  field(:imei)
  field(:macAddress)
  field(:mdn)
  field(:meid)
  field(:type)
end

defimpl Poison.Decoder,
  for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1NetworkDevice do
  def decode(value, options) do
    GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1NetworkDevice.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementV1NetworkDevice do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
